#ifndef ConnectionListener_h__
#define ConnectionListener_h__


#include "Connection.h"

class ConnectionListener
{
public:
	ConnectionListener(void) {}
	virtual ~ConnectionListener(void) {}

public:
	virtual void onConnStart(ConnectionPtr c) {  }
	virtual void onConnStop(ConnectionPtr c) {  }
	virtual void onConnReadRawData(ConnectionPtr c, uint8* buffer, size_t s) {  }
	virtual void onConnPushRawData(ConnectionPtr c,const uint8* buffer, size_t s) {  }
};

class ConnectionClosedListener
{
public:
	virtual void onConnClosed(ConnectionPtr c) {  }
};


#endif // ConnectionListener_h__
